package com.xqboss.apps.enums.user;


import com.xqboss.common.enums.BaseEnum;

/**
 * 支付方式
 */
public enum PayTypeEnum implements BaseEnum<Integer> {

    Wallet(1, "钱包支付（充值时不可用）", Code.Wallet),
    Alipay_APP(2, "支付宝(APP)", Code.Alipay_APP),
    Alipay_H5(3, "支付宝(H5)", Code.Alipay_H5),
    YeePay_JH(4, "易宝聚合支付", Code.YeePay_JH),
    YeePay_Wallet(5, "易宝钱包支付", Code.YeePay_Wallet),
    YeePay_Alipay(6, "易宝支付宝支付", Code.YeePay_Alipay),
    ;

    public static final class Code {
        public static final String Wallet = "Wallet";
        public static final String Alipay_APP = "Alipay_APP";
        public static final String Alipay_H5 = "Alipay_H5";
        public static final String YeePay_JH = "YeePay_JH";
        public static final String YeePay_Wallet = "YeePay_Wallet";
        public static final String YeePay_Alipay = "YeePay_Alipay";
    }

    private final Integer value;
    private final String msg;

    private final String code;

    PayTypeEnum(Integer value, String description, String code) {
        this.value = value;
        this.msg = description;
        this.code = code;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }
}
